home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
dev
/
gcc
/
libmat.lha
/
src
/
mconst1.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1980-01-01
|
362b
|
23 lines
// MATRIX LIB
// TOMMY JOHANSSON 1995
#include "matrix.h"
Matrix::Matrix(float **mat,int x,int y)
{
#ifdef DEBUG
printf("Initierar matris frσn en array.Storlek: %dx%d\n",x,y);
#endif
int i,j;
koff=alloc(x+1,y+1);
if(koff==NULL)
{
printf("Minnet slut\n");
exit(0);
}
m=x;
n=y;
for(i=1;i<=x;i++)
for(j=1;j<=y;j++)
koff[i][j]=mat[i][j];
}